package com.wjw.liskovsubstitution.substitution01;

/**
 * TODO: 描述
 *
 * @author ikaros
 * @date 2024/7/8 23:35
 * @see <a href="ikaros@qq.com">mailTo: ikaros@qq.com</a>
 */
public class AbundantCalculator extends Calculator {

    public static void main(String[] args) {
        AbundantCalculator abundantCalculator = new AbundantCalculator();
        int sum = abundantCalculator.calculator(5, 3);
        System.out.println(sum);
        int diff = abundantCalculator.ownerCalculator(5, 3);
        System.out.println(diff);
    }

//    @Override
//    public int calculator(int a, int b) {
//        return a - b;
//    }

    public int ownerCalculator(int a, int b) {
        return a - b;
    }
}
